package com.test.demo.algorithm.datastructure.linkedlist;

public class LinkedlistNode {
    public Integer value;
    public LinkedlistNode next;

    public LinkedlistNode(Integer value) {
        this.value = value;
    }

    public LinkedlistNode(Integer value, LinkedlistNode next) {
        this.value = value;
        this.next = next;
    }

    @Override
    public String toString() {
        return "LinkedlistNode{" +
                "value=" + value +
                ", next=" + next +
                '}';
    }
}
